﻿using Microsoft.Extensions.DependencyInjection;
using WholeSlideImageViewer.Services;

namespace WholeSlideImageViewer
{
    internal static class WpfStartup
    {
        public static void ConfigureServices(IServiceCollection services)
        {
            services.AddSingleton<IAddressService, AddressService>();
            services.AddSingleton<IDeepZoomImageSource, DeepZoomImageSource>();
            services.AddSingleton<IExportService, ExportService>();

            services.AddTransient<MainWindow>();
            services.AddTransient<TiffOutputDialog>();
            services.AddTransient<OptiOutputDialog>();
            services.AddTransient<TextPropertiesDialog>();
            services.AddTransient<AssociatedImageDialog>();
        }
    }
}
